<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function fn(a) {
        //   声明一个空字符串
        var b = "";
        // 循环
        for (var i = a.length - 1; i >= 0; i--) {
          b += a[i];
        }
        return b;
      }

      document.write(fn("Jay Chou love you!"));
    </script>
  </body>
</html>
